package com.cbwl.eoas.common.util.sms;

public class HttpSenderTest {

	public static void main(String[] args) {
		String uri = "http://114.55.25.138/msg/HttpSendSM";//应用地址
		String account = "cbwl2016";//账号
		String pswd = "Cbwl2016@";//密码
		String mobiles = "18512540145";//手机号码，多个号码使用","分割
		String content = "eoas登录，短信测试";//短信内容
		boolean needstatus = true;//是否需要状态报告，需要true，不需要false
		String product = "";//产品ID
		String extno = "";//扩展码
		try {
			String returnString = "";
//					HttpSender.send(uri, account, pswd, mobiles, content, needstatus, product, extno);
			System.out.println(returnString);
			//TODO 处理返回值,参见HTTP协议文档
		} catch (Exception e) {
			//TODO 处理异常
			e.printStackTrace();
		}
//		try {
//			String returnString = HttpSender.batchSend(uri, account, pswd, mobiles, content, needstatus, product, extno);
//			System.out.println(returnString);
//			//TODO 处理返回值,参见HTTP协议文档
//		} catch (Exception e) {
//			//TODO 处理异常
//			e.printStackTrace();
//		}
	}
}